#include "gestionaireImage.h"

#include <iostream>

GestionaireImage::GestionaireImage(){
    images[STABLE] = IMG_Load("images/stable.bmp");
    images[MOUVHORI] = IMG_Load("images/mouv.bmp");
    images[MOUVVERTI] = IMG_Load("images/mouv2.bmp");
    images[PIEGE] = IMG_Load("images/piege.bmp");
    images[DISPARAIT] = IMG_Load("images/disparait.bmp");
    images[TEMPO] = IMG_Load("images/cubeTempo.bmp");
    images[PIEGECASSE] = IMG_Load("images/casse.bmp");
    images[FUSEE] = IMG_Load("images/fuseeA.bmp");
    images[ANIMATION] = IMG_Load("images/sprit/explosion.png");
	SDL_SetColorKey( images[ANIMATION], SDL_SRCCOLORKEY, SDL_MapRGB( images[ANIMATION]->format, 255, 255, 255));
    images[MONSTRE4] = IMG_Load("images/monstre4.bmp");
    images[SOUCOUPE] = IMG_Load("images/soucoupe.png");
    images[TIR] = IMG_Load("images/tir.bmp");
    images[PROTECTION] = IMG_Load("images/protectionMini.png");
    images[TROU] = IMG_Load("images/trou.bmp");

    images[RESORTBAS] = IMG_Load("images/ressort.bmp");
    images[RESORTHAUT] = IMG_Load("images/ressort2.bmp");

    images[SUPERRESSORT] = IMG_Load("images/superResort.bmp");
    images[TRAMPO] = IMG_Load("images/trampo.bmp");


    images[POD1] = IMG_Load("images/podium1.png");
    images[POD2] = IMG_Load("images/podium2.png");
    images[POD3] = IMG_Load("images/podium3.png");
};

SDL_Surface *GestionaireImage::get(int i ){
    return images[i];
}
